<?php $url = new Url();?>
<div id="main" class="nosidebar">    
    <div id="content">

        <div class="contextual">
            <a href="<?php echo $url->createUrl("new/add"); ?>" class="icon icon-add">Thêm tin</a>
        </div>

        <h2>Tin tức</h2>
        
        <?php foreach($data as $row){ ?>
        <h3>
            <a href="<?php echo $url->createUrl("new/detail",array("new_id"=>$row['new_id'])); ?>"><?php echo $row['new_title']; ?></a>
        </h3>
        <p class="author">thêm bởi <a href="javascript:"><?php echo $row['fullname']; ?></a> vào lúc <a href="javascript:"><?php echo date('H:i',$row['new_create_date']); ?> </a> ngày <a href="javascript:"> <?php echo date('d/m/Y',$row['new_create_date']); ?></a></p>
        <div class="wiki">
            <p><?php echo $row['new_description']; ?></p>
        </div>
        <?php } ?>                
        
        <p class="pagination"></p>
        <div style="clear:both;"></div>
    </div>
</div>